home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Softdisk Supreme
/
Softdisk Supreme.iso
/
pc
/
DSK Files
/
0-49
/
SD024b.dsk
/
LOADHRCG.bas
< prev
next >
Wrap
BASIC Source File
|
2003-06-12
|
837b
|
26 lines
100 REM PROGRAM TO LOAD HRCG
110 ONERR GOTO 330
120 ADRS = 0
130 PRINT CHR$(4);"BLOAD RBOOT"
140 CALL 520: REM EXECUTE RBOOT
150 ADRS = USR(0),"HRCG"
160 REM BRING IN HRCG, ADRS=STARTING ADDRESS
170 PRINT "HOW MANY ALTERNATE CHARACTER SETS"
180 INPUT "WOULD YOU LIKE (0-9)? ";A
190 IF (A <0) OR (A >9) THEN 170
200 IF A = 0 THEN 300
210 IF ADRS < = 0 THEN ADRS = ADRS +65536: REM MAKE ADRS POSITIVE
220 CS = ADRS -768 *A: HIMEM: CS
230 CH = INT(CS/256):CL = CS -256 *CH
240 POKE ADRS +7,CL: POKE ADRS +8,CH
250 FOR I = 1 TO A
260 PRINT "NAME OF CHARACTER SET ";I;
270 INPUT CN$
280 PRINT CHR$(4);"BLOAD ";CN$;",A";CS +(I -1) *768: REM LOAD IN SET
290 NEXT I
300 CALL ADRS: REM INITIALIZE HRCG
310 POKE 216,0: REM ONERR OFF
320 END
330 PRINT "UNABLE TO LOAD"
340 POKE 216,0: REM ON ERR OFF
350 END